{extend name="index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-header">{:lang('addons')}{:lang('list')}</div>
    <div class="layui-card-body">
        <table class="layui-table layui-hide" id="list" lay-filter="list"></table>
    </div>
</div>

<!--登陆页面-->
<div style="display: none;padding: 20px" id="login">
    <blockquote class="layui-elem-quote layui-text">
        登录提示：账号为 <a  target="_blank" href="https://bbs.topadmin.cn">TopAdmin</a> 官方账号
    </blockquote>
    <br>
    <br>
    <form class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-icon layui-icon-username"></i> 账号</label>
            <div class="layui-input-line">
                <input type="text" class="layui-input" id="inputUsername" value="" placeholder="{:lang('username or email')}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-icon layui-icon-password"></i> 密码</label>
            <div class="layui-input-line">
                <input type="password" class="layui-input" id="inputPassword" value="" placeholder="{:lang('Your password')}">
            </div>
        </div>
    </form>
</div>

<script type="text/html" id="action">
    {{# if(d.install==1){ }}
    <a href="javascript:;" class="layui-btn  layui-btn-xs" lay-event="config">{:lang('config')}</a>
        {{#  if(d.status == 1){ }}
        <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event='status'>启用</a>
        {{#  } else { }}
        <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event='status'>禁用</a>
        {{#  } }}
    <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="uninstall">{:lang('uninstall')}</a>

    {{# }else{ }}
        <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="install">{:lang('install')}</a>

    {{# } }}

    {{# if(d.install==1){ }}
        {{# if(d.website !=''){ }}
        <a  href="{{d.website}}"  target="_blank" class="layui-btn  layui-btn-xs">{:lang('demo')}</a>
        {{# } }}
    {{# } }}
</script>

<script type="text/html" id="name">
    {{d.name}}<img src="/static/admin/images/image.gif" onmouseover="layer.tips('<img src={{d.image}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
</script>
{/block}
{block name="script"}
<script src="/static/libs/md5/md5.min.js"></script>
<script>
    layui.use(['element', 'layer', 'addon'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            addon = layui.addon;
    });
</script>
{/block}


